package com.lanju.service.impl;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;

import com.lanju.common.JSONUtils;
import com.lanju.dao.BillsDao;
import com.lanju.dao.HouseDao;
import com.lanju.dao.OrganizationDao;
import com.lanju.dao.RecomDao;
import com.lanju.dao.ServiceDao;
import com.lanju.dao.SystemAdminDao;
import com.lanju.entity.Community;
import com.lanju.entity.CommunityImg;
import com.lanju.entity.House;
import com.lanju.entity.HouseImg;
import com.lanju.entity.Organization;
import com.lanju.entity.Server;
import com.lanju.entity.SystemAdmin;
import com.lanju.model.OrganizationModel;
import com.lanju.model.ResultModel;
import com.lanju.service.BillsService;
import com.lanju.service.HouseService;
import com.lanju.service.OrganizationService;
import com.lanju.service.RecomService;
import com.lanju.service.ServiceService;


@Service
public class RecomServiceImpl implements RecomService{

    private static final Logger LOGGER = LoggerFactory.getLogger(RecomServiceImpl.class);
    
    @Autowired
    RecomDao recomDao;
    
	@Override
	@Transactional(value="financialmarketingTM", readOnly=true)
	public Map<String, Object> insertRecommed(Map<String, Object> param) {
		Map<String, Object> result = new HashMap<String, Object>();
		
		try {
			recomDao.insertRecommed(param);
			result.put("msg", true);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			result.put("msg", false);
		}
		return result;
	}

}
